package com.qc.ds.services.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qc.ds.dao.AdminInfoMapper;
import com.qc.ds.pojo.AdminInfo;
import com.qc.ds.services.UserInfoService;
import com.qc.ds.util.MD5Util;

@Service
public class UserInfoServiceImpl implements UserInfoService {

	@Autowired
	AdminInfoMapper userInfoMapper;

	public AdminInfo findUserLogin(String accout, String passWord) {
		//MD5加密
		passWord = MD5Util.MD5EncodeUtf8(passWord);
		return userInfoMapper.findUserLogin(accout, passWord);
	}

}
